//
//  JXMarkBodyView.swift
//  StockProject
//
//  Created by mc on 2018/1/2.
//  Copyright © 2018年 zhangyufei. All rights reserved.
//

import UIKit
import Instructions

class JXMarkBodyView: UIControl, CoachMarkBodyView {
    var nextControl: UIControl? {
        get {
            return self
        }
    }
    
    weak var highlightArrowDelegate: CoachMarkBodyHighlightArrowDelegate? = nil
    
    var hintLabel = UITextView()
    
    convenience init() {
        self.init(frame: .zero)
        
        self.translatesAutoresizingMaskIntoConstraints = false
        
        hintLabel.backgroundColor = UIColor.clear
        hintLabel.textColor = UIColor.white
        hintLabel.font = UIFont.systemFont(ofSize: 18.0)
        
        hintLabel.textAlignment = .center
        hintLabel.layoutManager.hyphenationFactor = 1.0
        
        hintLabel.isScrollEnabled = false
        hintLabel.isEditable = false
        
        hintLabel.translatesAutoresizingMaskIntoConstraints = false
        hintLabel.isUserInteractionEnabled = false
        
        self.addSubview(hintLabel)
        
        self.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:|[hintLabel]|", options: NSLayoutFormatOptions(rawValue: 0),
                                                           metrics: nil, views: ["hintLabel": hintLabel]))

        self.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:|[hintLabel]|", options: NSLayoutFormatOptions(rawValue: 0),
                                                           metrics: nil, views: ["hintLabel": hintLabel]))
    }
    



}
